package patterns.structures.adapter.net.objadpt;

public class TextShape implements Shape {
	private TextView tv;
	
	TextShape(TextView tv){
		this.tv=tv;
	}

	@Override
	public Point getBlPoint() {
		System.out.println("TextShape.getBlPoint()...");
		int x=this.tv.getCorX();
		int y=this.tv.getCorY();
		return new Point(x,y);
	}

	@Override
	public Point getTRPoint() {
		System.out.println("TextShape.getTRPoint()...");
		int x=this.tv.getCorX();
		int y=this.tv.getCorY();
		int h=this.tv.getHeight();
		int w=this.tv.getWidth();
		return new Point(x+w,y+h);
	}
 
}
